package com.atung.merchant.mapper;

import com.atung.merchant.po.BusOrderMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @author Administrator
 */
@Mapper
public interface BusOrderMenuMapper extends BaseMapper<BusOrderMenu> {
    @Update("update bus_order_menu set menu_state=2 " +
            " where order_id=#{id} and  menu_state=0")

    Integer updateByOrderId(@Param("id") Long id);
}
